import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            // 路径 默认显示商品页
            path: '/',
            redirect: '/goods',
            children: [
                {
                    path: 'goods',
                    name: 'goods',
                    component: () => import('../views/Tabs/Goods.vue')
                },
                {
                    path: 'seller',
                    name: 'seller',
                    component: () => import('../views/Tabs/Seller.vue')
                },
                {
                    path: 'rating',
                    name: 'rating',
                    component: () => import('../views/Tabs/Rating.vue')
                },
            ]

        }
    ]
})


export default router